<?php
require_once 'config/configuration.php';
require_once "includes/classes/Database.php";
require_once "includes/functions.php";

require_once 'model/users.php';
include_once("model/trade.php");
include_once("model/state.php");


## creating objects of required models
$userObj 		= new Model_Users();
$tradeObj = new Model_TRADE();
$stateObj = new Model_State();

$job_id = $_GET['jobid'];
$getjobdetail =$userObj->getJobDetailsById($job_id);

$subject ="Wow! Check this job out: ".substr_replace($getjobdetail['job_desc'],"",40)."";

$imgUrl = SITE_URL."/uploads/job/featredjob_img1.jpg";	

?>

<html lang="en">
<head>
<title><?php echo substr_replace($getjobdetail['job_desc'],"",40); ?></title>
<meta http-equiv="title" name="title" content="<?php echo $subject; ?>" />      
<meta http-equiv="description" name="description" content="<?php echo $getjobdetail['job_desc']; ?>" />
<link rel="image_src" href="<?php echo $imgUrl; ?>" />

</head>
<body>
<?php
redirect_to_link(SITE_URL."/jobs/".base64_encode($_GET['jobid'])."/findjobdetail/");
?>
</body>
</html>
